import pandas as pd
# 读取CSV文件
df = pd.read_csv('fyx_chinamoney.csv')
# 将代码列表转换为列表对象
code_list = df['stockCode'].to_list()
# 按照要求进行批次拆分输出
batch_size = 80
for batch_start in range(0, len(code_list), batch_size):
    batch_end = batch_start + batch_size
    if batch_start +batch_size < len(code_list):
        break

    else:
        len(code_list)
        code_batch = code_list[batch_start:batch_end]
print(code_batch)